﻿using ExamWeek01.Domain;
using Microsoft.EntityFrameworkCore;

namespace ExamWeek01.Repository
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class UserDbContext:DbContext
    {
        public UserDbContext(DbContextOptions<UserDbContext>options):base   (options) { }
        public DbSet<User> User { get; set; }
        public DbSet<Role> Role { get; set; }
        public DbSet<UserRole> UserRole { get; set; }
    }
}